<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core"
	template="/templates/template.xhtml">
	<head>
	<script type="text/javascript"> </script>
	</head>

	<ui:define name="conteudo">
		<div align="center"> 
		<h:form id="form">
		
			<h:outputLabel value="#{msg.confirmaSenha}" for="confirmaSenhaPes" />
			<h:inputSecret id="idadeId" value="#{testeMB.idade}" required="true" requiredMessage="#{msg.campoObrigatorio}">
				<rich:ajaxValidator event="onblur" />
			</h:inputSecret><rich:message for="idadeId" styleClass="mensagem_erro_campo"/>
		
			<h:outputLabel value="#{msg.confirmaSenha}" for="confirmaSenhaPes" />
			<h:inputSecret id="nameId" value="#{testeMB.name}" disabled="#{testeMB.usarSenhaPadrao}">
				<rich:ajaxValidator event="onblur" />
				<a4j:support event="onkeydown" reRender="ajaxTest" />
			</h:inputSecret><h:panelGroup></h:panelGroup>
			Aqui<h:outputText value="#{testeMB.name}" id="ajaxTest" />
			
			
			<h:outputLabel value="#{msg.senhaPadrao}" for="usarSenhaPadrao" />
			<h:selectBooleanCheckbox id="usarSenhaPadrao" value="#{testeMB.usarSenhaPadrao}">
				<a4j:support event="onclick" reRender="nameId"></a4j:support>
			</h:selectBooleanCheckbox><h:panelGroup></h:panelGroup>

		</h:form> </div>
	</ui:define>
	<ui:define name="login"></ui:define>
</ui:composition>